package com.mask.sca.auth.api.feign;

import com.mask.sca.core.response.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @Author：jian
 * @Package：com.mask.sca.auth.api.feign
 * @Project：mask-sca-cloud
 * @name：FeignOauthService
 * @Date：2025/7/25 17:03
 * @Filename：FeignOauthService
 */
@FeignClient(name = "mask-sca-auth", path = "/api/auth")
public interface FeignAuthService {
    /**
     * 获取登录token
     * @return
     */
    @PostMapping("/login/password")
    ApiResponse<Map<String, Object>> passwordLogin(@RequestBody Map<String, Object> params);

    @PostMapping("/login/sms")
    ApiResponse<Map<String, Object>> smsCodeLogin(@RequestBody Map<String, Object> params);

    @PostMapping("/refresh")
    ApiResponse<Map<String, Object>> refreshToken(@RequestBody Map<String, Object> params);
}
